package com.brspace.qualitycontrol.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.brspace.qualitycontrol.entity.Letter;
import com.brspace.qualitycontrol.entity.vo.LetterQueryVo;
import com.brspace.qualitycontrol.utils.R;

import java.util.List;

/**
 * <p>
 * 信访诉求 服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-04-09
 */
public interface LetterService extends IService<Letter> {

    /**
     * 信访诉求录入
     * @param letter
     * @return
     */
    R add(Letter letter);

    IPage<Letter> selectPage(Page<Letter> pageParam, Object o);

    R num();

    /**
     * 已办总数以及树状图
     * @return
     */
    R alreadyNum();

    /**
     * 代办数
     * @return
     */
    R waitNum();

    /**
     * 柱状图
     * @return
     */
    R stateZhu();

    Object findById(String id);

    R examine(Letter letter, String userName, String uid);

    R selectPage1(int page, int limit, Object o, String id);

    R stateList1(int page, int limit, Object o, String id);

    R findList(int page, int limit, LetterQueryVo letterQueryVo, String id);

    R listFind(int page, int limit, LetterQueryVo letterQueryVo, String id);

    R seleAll(int page, int limit, LetterQueryVo letterQueryVo, String id);
}
